Index Parent

Menu classes


Menustrip, Menu and Menuitem are used to create menus for applications and windows and context-menus for any object.

A Menu can only be added to a Menustrip.

A Menuitem named MI can only be added to:

Once a Menustrip was used as strip for an application or a window it can't be removed or disposed.

Once a Menustrip was used as context-menu for an object it can't be removed or disposed.
To remove/dispose it you must set another Menustrip as context-menu for that object and then remove or dispose it.

Of course all the above is handled by RxMUI: if an operation is not possible, RxMUI just returns an error code.

A complete menu strip is created with:

    strip.0="MPROJECT"
     mproject.Title="Project"
      mproject.0=menuitem("MSERVERS","Server...","S")
      mproject.1=menuitem("","BAR")
      mproject.2=menuitem("MLOG","Active Log","","CHEKIT TOGGLE")
      mproject.3=menuitem("","BAR")
      mproject.4=menuitem("MHIDE","Hide","H")
      mproject.5=menuitem("","BAR")
      mproject.6=menuitem("MHELP","Help...")
      mproject.7=menuitem("","BAR")
      mproject.8=menuitem("MABOUTAMIRC","About Amirc...","?")
      mproject.9=menuitem("MABOUTMUI","About MUI...")
      mproject.10=menuitem("","BAR")
      mproject.11=menuitem("MQUIT","Quit","Q")
     res=NewObj("MENUSTRIP","STRIP")

See MakeObj() MenuItem()

 

ATTRIBUTES FOR MENUITEM
Name Type Class Note
Checked B ISGN  
CheckIt B ISG  
Enabled B ISGN  
Exclude N ISG  
MenuTrigger B GN Set to 1 and notified when a Menuitem is selected
ShortCut S ISG  
SubItem S I  
Title S ISG  
Toggle B ISG  

 

ATTRIBUTES FOR MENU
Name Type Class Note
Enabled B ISGN  
Title S ISG  

 

ATTRIBUTES FOR MENUSTRIP
Name Type Class Note
Enabled B ISGN  
Title S ISG  

 

METHODS
Name Parameters Note
none defined